<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
                "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
  <title>Description of example_fetchcalc</title>
  <meta name="keywords" content="example_fetchcalc">
  <meta name="description" content="">
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <meta name="generator" content="m2html v1.5 &copy; 2003-2005 Guillaume Flandin">
  <meta name="robots" content="index, follow">
  <link type="text/css" rel="stylesheet" href="../m2html.css">
</head>
<body>
<a name="_top"></a>
<div><a href="../index.html">Home</a> &gt;  <a href="index.html">swan_scripts</a> &gt; example_fetchcalc.m</div>

<!--<table width="100%"><tr><td align="left"><a href="../index.html"><img alt="<" border="0" src="../left.png">&nbsp;Master index</a></td>
<td align="right"><a href="index.html">Index for swan_scripts&nbsp;<img alt=">" border="0" src="../right.png"></a></td></tr></table>-->

<h1>example_fetchcalc
</h1>

<h2><a name="_name"></a>PURPOSE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong></strong></div>

<h2><a name="_synopsis"></a>SYNOPSIS <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="box"><strong>This is a script file. </strong></div>

<h2><a name="_description"></a>DESCRIPTION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre class="comment"></pre></div>

<!-- crossreference -->
<h2><a name="_cross"></a>CROSS-REFERENCE INFORMATION <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
This function calls:
<ul style="list-style-image:url(../matlabicon.gif)">
<li><a href="fetch_calc.html" class="code" title="function [fetch_struct] = fetch_calc(fvcom_mesh,fvcom_bath,lon,lat,zeta_min,zeta_max,nZeta,nTheta,dry_thresh,darc)">fetch_calc</a>	close all; clear all;</li><li><a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>	</li><li><a href="show_fetch.html" class="code" title="function show_fetch(f)">show_fetch</a>	</li></ul>
This function is called by:
<ul style="list-style-image:url(../matlabicon.gif)">
</ul>
<!-- crossreference -->



<h2><a name="_source"></a>SOURCE CODE <a href="#_top"><img alt="^" border="0" src="../up.png"></a></h2>
<div class="fragment"><pre>0001 clear all; 
0002 close all;
0003 <span class="comment">% determine fetch from Raubenheimer &amp; Elgar Instrument 41</span>
0004 re41fetch = <a href="fetch_calc.html" class="code" title="function [fetch_struct] = fetch_calc(fvcom_mesh,fvcom_bath,lon,lat,zeta_min,zeta_max,nZeta,nTheta,dry_thresh,darc)">fetch_calc</a>(<span class="string">'skg4.3_grd.dat'</span>,<span class="string">'skg4.3_dep.dat'</span>,-122.4721646,48.3372476,-3,3,30,16,0.1,125);
0005 
0006 <span class="comment">% plot fetch</span>
0007 <a href="show_fetch.html" class="code" title="function show_fetch(f)">show_fetch</a>(re41fetch);
0008 
0009 <span class="comment">% calculate fetch for a west wind with 0.5m of water at the site</span>
0010 uwind = 10;
0011 vwind = 0;
0012 fprintf(<span class="string">'with 0.5 meters of water\n'</span>)
0013 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,uwind,vwind,0.5);
0014 fprintf(<span class="string">'fetch from west wind %f\n'</span>,fetch);
0015 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,0,10,0.5);
0016 fprintf(<span class="string">'fetch from south wind %f\n'</span>,fetch);
0017 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,-1,0,0.5);
0018 fprintf(<span class="string">'fetch from east wind %f\n'</span>,fetch);
0019 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,0,-1,0.5);
0020 fprintf(<span class="string">'fetch from north wind %f\n'</span>,fetch);
0021 fprintf(<span class="string">'with 2.0 meters of water\n'</span>)
0022 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,uwind,vwind,2.0);
0023 fprintf(<span class="string">'fetch from west wind %f\n'</span>,fetch);
0024 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,0,10,2.0);
0025 fprintf(<span class="string">'fetch from south wind %f\n'</span>,fetch);
0026 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,-1,0,2.0);
0027 fprintf(<span class="string">'fetch from east wind %f\n'</span>,fetch);
0028 [fetch] = <a href="get_fetch.html" class="code" title="function [fetch] = get_fetch(f,uwind,vwind,depth)">get_fetch</a>(re41fetch,0,-1,2.0);
0029 fprintf(<span class="string">'fetch from north wind %f\n'</span>,fetch);</pre></div>
<hr><address>Generated on Wed 02-Nov-2011 21:58:00 by <strong><a href="http://www.artefact.tk/software/matlab/m2html/" title="Matlab Documentation in HTML">m2html</a></strong> &copy; 2005</address>
</body>
</html>